<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
  <head>
    <title>message.html</title>
	
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<script type="text/javascript" th:src="@{/jquery/jquery.min.js}"></script>
	
  </head>
  	
  <body>
  <div class="demo">
    <ul id="list">  
   <li><label><input type="checkbox" value="${MessageVo}">全部选择</label></li>
   <li><label><input type="checkbox" value="${MessageVo.userByTousername}">adminCEO</label></li>
	</ul>
	<input type="checkbox" id="all">  
	</div>
	<label>内容：</label>
	<input type="text"name="MessageVo.content" style="width:300px;height:300px"></br>
	<input type="submit" name="submit" value="发送" style="width:50px;height:50px;color:red">
	<input type="button" value="取消" style="width:50px; height:50px;color: blue ">
  </body>
  <script type="text/javascript">
  	$(function(){
		$("#all").click(function(){
			if(this.checked){
				$("#list input[type=checkbox]").prop("checked",true)
			}else{
				$("#list input[type=checkbox]").prop("checked",false)
			}
		})  	
  	})
  </script>
</html>  


